#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main3() {
	int n = 0;
	scanf("%d", &n);
	int arr[100] = { 0 };

	for (int i = 0; i < n; i++) {
		scanf("%d", &arr[i]);
		if (arr[i] >= 0 && arr[i] <= 18) {
			arr[n]++;
		}
		else if (arr[i] >= 19 && arr[i] <= 35) {
			arr[n + 1]++;
		}
		else if (arr[i] >= 36 && arr[i] <= 60) {
			arr[n + 2]++;
		}
		else {
			arr[n + 3]++;
		}
	}
	double sum = arr[n] + arr[n + 1] + arr[n + 2] + arr[n + 3];
	printf("%.2f%%\n", 100 * arr[n] / sum);
	printf("%.2f%%\n", 100 * arr[n+1] / sum);
	printf("%.2f%%\n", 100 * arr[n+2] / sum);
	printf("%.2f%%\n", 100 * arr[n+3] / sum);

	return 0;
}